function Tiantianwailian(links_id,platfrom,url,path,username,isshow,urlscheme){
	var mobile_flag = isMobile();
    var weixin = isWeiXin();
    if(mobile_flag){
        var baidu = isBaidu();
        var uc = isUc();
        var weibo = isWeibo();
        if (weixin) {
            if (platfrom != 1) {
                window.location.href="https://bab.moreqifu.cn/openminiapp/"+links_id+"?platfrom="+platfrom;
            } else {
                window.location.href=url;
            }
        } else if (uc) {
            $("#public-web-jump-button").html("点击立即前往微信");
            $("#dianjiimg").show();
        } else if (weibo) {
            if (path == "") {
                let noticemsg = "您的配置无法在微博跳转小程序,请使用小程序-密钥版创建外链！";
            } else {
                let noticemsg = "正在跳转微信小程序,如未自动打开微信请点击下方按钮!";
            }
            $(".notice-msg").html(noticemsg);
            $("#public-web-jump-button").attr("href","sinaweibo://wbdiversion?username="+username+"&path="+path);
            window.location.href="sinaweibo://wbdiversion?username="+username+"&path="+path;
        } else {
            if (isshow == 2) {
                $("#dianjiimg").show();
            }
            window.location.href=urlscheme;                    
            setTimeout(function (){
                $("#public-web-jump-button").html("点击立即前往微信");
                $("#dianjiimg").show();
            }, 3000);
        }
    } else {
        if (platfrom != 1) {
            $(".notice-msg").html("请扫描下方二维码,使用手机访问本网页！");
            $(".qrcodes").show();
            $("#public-web-jump-button").css({"background-color":"#CCCCCC","color":"#333333"}).html("扫码下方二维码");
        } else {
            window.location.href=url;
        }
    }
}

//判断是否是微信浏览器的函数
function isWeiXin(){
    var ua = navigator.userAgent.toLowerCase()
    var isWXWork = ua.match(/wxwork/i) == 'wxwork'
    var isWeixin = !isWXWork && ua.match(/micromessenger/i) == 'micromessenger'
    return isWeixin;
}

//判断是否是百度浏览器浏览器的函数,百度不能调起其他APP
function isBaidu(){
    ua = navigator.userAgent.toLowerCase();
    if (ua.indexOf('baiduboxapp/') >-1){
        return true;
    } else {
        return false;
    }
}

function isUc() {
    if (navigator.userAgent.match(/(UCBrowser|Quark)/i)) {
        return true;
    } else {
        return false;
    }
}

function isWeibo() {
    var ua = navigator.userAgent;
    if(ua.indexOf('Weibo') > -1) {
        return true;
    } else {
        return false;
    }
}

function isMobile() {
    if (navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|XiaoMi|IEMobile)/i)) {
        return true;
    } else {
        return false;
    }
}